class Config:
    # Login
    LOGIN_PAGE = 'https://app.bupt.edu.cn/uc/wap/login?'
    LOGIN_URL = 'https://app.bupt.edu.cn/uc/wap/login/check'

    USERNAME = '学号'
    PASSWORD = '密码'

    LOGIN_HEADER = {
        'Host': 'app.bupt.edu.cn',
        'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, '
                      'like Gecko) Chrome/93.0.4577.63 Mobile Safari/537.36',
        'Accept': 'application/json, text/javascript, */*; q=0.01',
        'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
        'Accept-Encoding': 'gzip, deflate, br',
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
        'X-Requested-With': 'XMLHttpRequest',
        'Origin': 'https://app.bupt.edu.cn',
        'Connection': 'keep-alive',
        'Referer': 'https://app.bupt.edu.cn/uc/wap/login',
    }

    # Report
    REPORT_URL = 'https://app.bupt.edu.cn/ncov/wap/default/save'
    REPORT_HEADER = {
        'Accept': 'application/json, text/javascript, */*; q=0.01',
        'Accept-Encoding': 'gzip, deflate, br',
        'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8',
        'Connection': 'keep-alive',
        'Content-Length': '3105',
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
        'Host': 'app.bupt.edu.cn',
        'Origin': 'https://app.bupt.edu.cn',
        'Referer': 'https://app.bupt.edu.cn/ncov/wap/default/index',
        'User-Agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) '
                      'Chrome/93.0.4577.63 Mobile Safari/537.36',
        'X-Requested-With': 'XMLHttpRequest',
    }
    PAYLOAD = {
        'ismoved': '0',
        'sfxk': '0',
        'zgfxdq': '0',
        'mjry': '0',
        'csmjry': '0',
        'ymjzxgqk': '正常',
        'xwxgymjzqk': '3',
        'uid': '31030',
        'tw': '3',
        'sfcxtz': '0',
        'sfyyjc': '0',
        'jcjgqr': '0',
        'sfjcbh': '0',
        'sfcxzysx': '0',
        'address': '北京市海淀区北太平庄街道北京邮电大学北京邮电大学海淀校区',
        'area': '北京市  海淀区',
        'province': '北京市',
        'city': '北京市',
        'geo_api_info': '{"type":"complete","position":{"Q":39.960791286893,"R":116.35670871310799,"lng":116.356709,'
                        '"lat":39.960791},"location_type":"html5","message":"Get ipLocation failed.Get geolocation '
                        'success.Convert Success.Get address success.","accuracy":95.742,"isConverted":true,'
                        '"status":1,"addressComponent":{"citycode":"010","adcode":"110108","businessAreas":[{'
                        '"name":"北下关","id":"110108","location":{"Q":39.955976,"R":116.33873,"lng":116.33873,'
                        '"lat":39.955976}},{"name":"西直门","id":"110102","location":{"Q":39.942856,'
                        '"R":116.34666099999998,"lng":116.346661,"lat":39.942856}},{"name":"小西天","id":"110108",'
                        '"location":{"Q":39.957147,"R":116.364058,"lng":116.364058,"lat":39.957147}}],'
                        '"neighborhoodType":"科教文化服务;学校;高等院校","neighborhood":"北京邮电大学","building":"","buildingType":"",'
                        '"street":"西土城路","streetNumber":"10号","country":"中国","province":"北京市","city":"",'
                        '"district":"海淀区","township":"北太平庄街道"},"formattedAddress":"北京市海淀区北太平庄街道北京邮电大学北京邮电大学海淀校区",'
                        '"roads":[],"crosses":[],"pois":[],"info":"SUCCESS"}',
        'created': '1632240071',
        'sfzx': '1',
        'sfjcwhry': '0',
        'sfcyglq': '0',
        'sftjwh': '0',
        'sftjhb': '0',
        'fjsj': '0',
        'sfjchbry': '0',
        'sfsfbh': '0',
        'jhfjsftjwh': '0',
        'jhfjsftjhb': '0',
        'szsqsfybl': '0',
        'sfygtjzzfj': '0',
        'sfsqhzjkk': '0',
        'sfjzxgym': '1',
        'sfjzdezxgym': '1',
        'created_uid': '0',
        'id': '13799757',
    }

    REPORT_SUCCESS = '操作成功'
    REPORT_ALREADY = '今天已经填报了'

    REPORT_HOUR = 2
